import {createObjectPicker} from "../../packages/utils/createObjectPicker";
import {PlcInput} from "plain-ui";

export const PickCategory = createObjectPicker({
  showKey: 'name',
  map: { name: 'name', id: 'id' },
  config: {
    url: '/ov',
    render: () => <>
      <PlcInput title="显示值" field="name"/>
      <PlcInput title="代码" field="code"/>
      <PlcInput title="类型" field="type"/>
      <PlcInput title="说明" field="comment"/>
    </>
  },
});
